package ${servicePackage};

import ${daoClass}.${DaoName};
import ${entityClass}.${EntityName};
import com.xzc.one.common.inout.exception.GlobalException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

${comment}
@Service
public class ${EntityName}Service {

    @Autowired
    private ${DaoName} ${daoName};

    public Integer insert${EntityName}(${EntityName} ${entityName}) {
        ${if}
        return ${daoName}.insert(${entityName});
    }
}
